package com.foreknow.dao;

import com.foreknow.bean.User;

import java.sql.SQLException;

public interface UserDao {
    /**
     * 添加用户信息
     * @param user
     * @return
     */
    public boolean save(User user) throws SQLException;

    /**
     * 登录
     * @param adminname
     * @param password
     * @return
     */
    public User join (String adminname,String password)throws SQLException;
}
